package com.design.blog.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.design.blog.model.Article;
import com.design.blog.model.Comment;
import com.design.blog.model.vo.CommentParams;
import com.design.blog.model.R;
import com.design.blog.model.vo.CommentVO;
import com.design.blog.model.vo.PageNationParams;
import com.design.blog.model.vo.PageResult;

import java.util.List;

/**
 * @version 1.0
 * @author hxg
 * @date 2022-02-28
 * 服务类
 */
public interface ICommentService extends IService<Comment> {

	/**
	 * 自定义分页查询
	 * @param page
	 * @param comment
	 * @return 分页数据
	 */
	IPage<Comment> selectCommentPage(IPage<Comment> page, CommentVO comment);

    List<CommentVO> getArticleCommentList(Long id);

    R comment(String token,CommentParams commentParams);

    PageResult<CommentVO> getAllUseComment(PageNationParams params);
}
